<?php
/**
 * Created by PhpStorm.
 * User: 技术员专用
 * Date: 2019/3/15
 * Time: 10:27
 */

$table=new swoole_table(1024);

$table->column('id',$table::TYPE_INT,2);
$table->column('name',$table::TYPE_STRING,64);
$table->column('age',$table::TYPE_INT,2);

$table->create();

$table->set('memory_table',['id'=>1,'name'=>'416848','age'=>21]);

$res=$table->get('memory_table');
var_dump($res);
$table['memory_table1']=[
    'id'=>1,
    'name'=>'77777',
    'age'=>23
];
$table->incr('memory_table1','age',3);
$table->decr('memory_table1','age',1);
var_dump($table['memory_table1']);
echo "delete-------";
$table->del('memory_table1');
var_dump($table['memory_table1']);